package com.moranyunxi.www.pojo;

public enum ReturnTemplate {
    SUCCESS(200, "成功"),

    PARAMATER_EXCEPTION(400, "参数异常"),

    SERVER_ERROR(500, "失败");

    private int code;

    private String message;

    private ReturnTemplate(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
